<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>w3c的非标准属性</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				let p=$("#d1").attr("data-page");
				alert(p);//元素带值的属性以  data- 开头
				alert($("#d1").html());
				$("#d1").html("<h1>今天有雨！！！</h1>");
			});
		</script>
	</head>
	<body>
		<div id="d1" data-page="15"><a>2222222222</a></div>
	</body>
</html>